import config from "@/config";
import http from "@/utils/request";

export default {
	set: {
		url: `${config.API_URL}/SystemSetting/set`,
		name: "设置",
		post: async function (data) {
			return await http.post(this.url, data);
		},
	},
	detail: {
		url: `${config.API_URL}/SystemSetting/detail`,
		name: "设置",
		get: async function () {
			return await http.get(this.url);
		},
	},
	serverInfo: {
		url: `${config.API_URL}/SystemSetting/server/info`,
		name: "获取服务器配置信息",
		get: async function () {
			return await http.get(this.url);
		},
	},
	serverUsed: {
		url: `${config.API_URL}/SystemSetting/server/used`,
		name: "获取服务器使用信息",
		get: async function () {
			return await http.get(this.url);
		},
	},
	serverDisk: {
		url: `${config.API_URL}/SystemSetting/server/disk`,
		name: "获取服务器磁盘信息",
		get: async function () {
			return await http.get(this.url);
		},
	},
	serverAssembly: {
		url: `${config.API_URL}/SystemSetting/server/assembly`,
		name: "获取服务器程序集信息",
		get: async function () {
			return await http.get(this.url);
		},
	},
};
